package jwdt.xadmin.work.service;

import java.util.List;

import jwdt.common.bean.Tree;
import jwdt.xadmin.system.bean.TUser;
import jwdt.xadmin.work.bean.TEmail;

import com.ezerg.db.ext.PageUtil;

public interface EmailManageService {
	
	public PageUtil doInList(PageUtil pu,TUser userInfo,String zt) throws Exception ;
	public PageUtil doOutList(PageUtil pu,TUser userInfo,String zt) throws Exception ;
	public String doAddact(TEmail obj,TUser user,int zt,int oldemailid) throws Exception ;
	public String doEditact(TEmail obj,int id,int zt) throws Exception; 
	public String doDelact(int id,TUser userInfo) throws Exception; 
	public TEmail doLoad(int id) throws Exception; 
	public List<Tree> doLeftTree() throws Exception;
	public PageUtil doListUserEmailState(PageUtil pu,int id,String zt) throws Exception;
	public String doGetNewEmail(TUser userInfo) throws Exception;
	public String doUpdateEmailState(int id,int userid,String flag) throws Exception;
	public String doLoadReceiver(int emailid,TUser userInfo) throws Exception;
	public String doSendEmail(int emailid) throws Exception;
	public String doSendRealEmail(TEmail obj, TUser userInfo,String receiver) throws Exception;
}
